skip single test or whole test file for macOS: they are broken
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 18 Mar 2025 08:35:13 +0000 (09:35 +0100)
committerJyrki Gadinger <nilsding@nilsding.org>
Tue, 15 Apr 2025 11:44:51 +0000 (13:44 +0200)
would need careful analyze to fix those

until we can get them fixed, better make the other tests be required in
the CI

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
test/CMakeLists.txt
test/testfolderwatcher.cpp
test/testsyncmove.cpp

index ada0d64c58cc582e8415d9e4beae7101ffbe8d14..2c66540f1c5eeaf06ef8a60d43c9df0808cdf753 100644 (file)
@@ -47,9 +47,9 @@ nextcloud_add_test(Utility)
 
 if (NOT APPLE)
     nextcloud_add_test(SyncEngine)
+    nextcloud_add_test(SyncVirtualFiles)
 endif()
 
-nextcloud_add_test(SyncVirtualFiles)
 nextcloud_add_test(SyncMove)
 nextcloud_add_test(SyncDelete)
 nextcloud_add_test(SyncConflict)
index 598c361a76c4418c7c8472793e43285980ffa34c..ef368a7923acb8ecebc55c1a5fe2c5b160a07b21 100644 (file)
@@ -331,6 +331,10 @@ private slots:
     }
     void testDetectLockFilesExternally()
     {
+#if defined Q_OS_MACOS
+        QSKIP("not reliable on macOS");
+#endif
+
         QStringList listOfOfficeFiles = {QString(_rootPath + "/document.docx"), QString(_rootPath + "/document.odt")};
         std::sort(std::begin(listOfOfficeFiles), std::end(listOfOfficeFiles));
 
index 8b5ef5806aae3b4528b5213eb8115459c252dd3f..4f775c7fc9fd611290fbc384172f81765148874c 100644 (file)
@@ -976,6 +976,10 @@ private slots:
 
     void testMovedWithError()
     {
+#if defined Q_OS_MACOS
+        QSKIP("not reliable on macOS");
+#endif
+
         QFETCH(Vfs::Mode, vfsMode);
         const auto getName = [vfsMode] (const QString &s)
         {